package com.we823.cms.model.extension;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.we823.cms.model.BaseModelWithDate;

@Entity
@Table(name="ex_case")
public class CaseModel extends BaseModelWithDate<Integer> {

	private static final long serialVersionUID = -7110429418329795173L;

	private String code;
	private String title;
	private String type;

	@Column(name = "category_id")
	private Integer categoryId;
	@Transient
	private CaseCategory category;
	private String company;
	private String content;
	private String inputer;
	private String thumb;
	private String description;
	private int hits=1;
	
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public CaseCategory getCategory() {
		return category;
	}
	public void setCategory(CaseCategory category) {
		this.category = category;
	}
	public String getCompany() {
		return company;
	}
	public void setCompany(String company) {
		this.company = company;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public String getInputer() {
		return inputer;
	}
	public void setInputer(String inputer) {
		this.inputer = inputer;
	}
	public String getThumb() {
		return thumb;
	}
	public void setThumb(String thumb) {
		this.thumb = thumb;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public int getHits() {
		return hits;
	}
	public void setHits(int hits) {
		this.hits = hits;
	}

	public Integer getCategoryId() {
		return categoryId;
	}

	public void setCategoryId(Integer categoryId) {
		this.categoryId = categoryId;
	}
}
